package org.travelfusion.xmlclient.ri.xobject.misc;

import java.io.Serializable;
import java.util.Map;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * A "Airline" has a "TFCode", an "IataCode" and a list of "AirlineName"
 * @see XAirlineName
 * @author Jing Hu (hujing1984@gmail.com)
 */
public class XAirline implements Serializable, IsSerializable {
	
	private static final long serialVersionUID = 1L;
	
	private String tfCode;

	private String iataCode;
	
	/**
	 * Key  : "LanguageCode" e.g. en.
	 * Value: XAirlineName
	 */
	private Map<String, XAirlineName> airlineNameMap;
	
	/**
	 * Returns the airlineNameMap.
	 * @return the airlineNameMap.
	 */
	public Map<String, XAirlineName> getAirlineNameMap() {
		return airlineNameMap;
	}

	/**
	 * Sets the airlineNameMap.
	 * @param airlineNameMap the airlineNameMap.
	 */
	public void setAirlineNameMap(Map<String, XAirlineName> airlineNameMap) {
		this.airlineNameMap = airlineNameMap;
	}

	/**
	 * Returns the tfCode.
	 * @return the tfCode.
	 */
	public String getTfCode() {
		return tfCode;
	}

	/**
	 * Sets the tfCode.
	 * @param tfCode the tfCode.
	 */
	public void setTfCode(String tfCode) {
		this.tfCode = tfCode;
	}

	/**
	 * Returns the iataCode.
	 * @return the iataCode.
	 */
	public String getIataCode() {
		return iataCode;
	}

	/**
	 * Sets the iataCode.
	 * @param iataCode the iataCode.
	 */
	public void setIataCode(String iataCode) {
		this.iataCode = iataCode;
	}

}
